package gsoc.p2.activator;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.util.tracker.ServiceTrackerCustomizer;

public class MyActivator implements BundleActivator, ServiceTrackerCustomizer {

	public static final String PLUGIN_ID = "org.eclipse.ui.articles.views";

	private static BundleContext context;

	// private ServiceTracker profileTracker;
	// private ProvCommandProvider provider;
	// private ServiceRegistration providerRegistration = null;
	
	public static BundleContext getContext() {
		return context;
	}
	
	public MyActivator() {
		super();
		System.out.println("MyActivator()");
	}
	
	public void start(BundleContext context) throws Exception {
		System.out.println("setting BundleContext = context.");
		MyActivator.context = context;
	}

	public void stop(BundleContext context) throws Exception {
		System.out.println("MyActivator.context = null");
		MyActivator.context = null;
	}

	public Object addingService(ServiceReference reference) {
		// TODO Auto-generated method stub
		return null;
	}

	public void modifiedService(ServiceReference reference, Object service) {
		// TODO Auto-generated method stub
		
	}

	public void removedService(ServiceReference reference, Object service) {
		// TODO Auto-generated method stub
		
	}
	

}
